/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.bean.util;

import cn.ekuma.epos.datalogic.I_DataLogicSales;
import com.openbravo.data.basic.BasicException;
import com.openbravo.pos.base.AppLocal;
import com.openbravo.bean.Service;
import com.openbravo.bean.ServiceCalendarDayLine;
import com.openbravo.bean.ServiceCalendarWeakLine;
import com.openbravo.bean.ServiceDayState;
import java.util.Date;
import java.util.List;
import net.sourceforge.jtimepiece.TimeUtil;

/**
 *
 * @author Administrator
 */
public class SerivceHelper {

    public static String printServiceName(Service service) {
        String printName = "";
        if (Service.SERVICETYPE_user.equalsIgnoreCase(service.getM_sType())) {//用户类
            printName += AppLocal.getIntString("list.SERVICETYPE_user");
        } else if (Service.SERVICETYPE_place.equalsIgnoreCase(service.getM_sType())) { //资源类
            printName += AppLocal.getIntString("list.SERVICETYPE_place");
        } else if (Service.SERVICETYPE_product.equalsIgnoreCase(service.getM_sType())) {//产品类
            printName += AppLocal.getIntString("list.SERVICETYPE_product");
        }
        printName += "-" + service.getM_sName();
        return printName;
    }
}
